import 'windi.css';
import '../style/element-ui.scss'
import locale from 'element-ui/lib/locale'
import enLocale from 'element-ui/lib/locale/lang/en';
import zhCNLocale from 'element-ui/lib/locale/lang/zh-CN';
import zhTWLocale from 'element-ui/lib/locale/lang/zh-TW';
import McButton from './button/index.vue';
import McTimePicker from './time-picker/index.vue';
import McColorPicker from './color-picker/index.vue';
import McInput from './input/index.vue';
import McSelect from './select/index.vue';
import McDatePicker from './date-picker/index.vue';
import McInputNumber from './input-number/index.vue';
import McAddress from './address/index.vue';
import McAlert from './alert/index.vue';
import McAutoComplete from './auto-complete/index.vue';
import McBarcode from './barcode/index.vue';
import McCalculate from './calculate/index.vue';
import McCascader from './cascader/index.vue';
import McCheckbox from './checkbox/index.vue';
import McComSelect from './com-select/index.vue';
import McDateRangePicker from './date-range-picker/index.vue';
import McDateTimePicker from './date-time-picker/index.vue';
import McDepSelect from './dep-select/index.vue';
import McDivider from './divider/index.vue';
import McEditor from './editor/index.vue';
import McGroupSelect from './group-select/index.vue';
import McGroupTitle from './group-title/index.vue';
import McLink from './link/index.vue';
import McNumRange from './num-range/index.vue';
import McNumber from './number/index.vue';
import McOpenData from './open-data/index.vue';
import McPopupAttr from './popup-attr/index.vue';
import McPopupSelect from './popup-select/index.vue';
import McPopupTableSelect from './popup-table-select/index.vue';
import McPosSelect from './pos-select/index.vue';
import McQrcode from './qrcode/index.vue';
import McRadio from './radio/index.vue';
import McRate from './rate/index.vue';
import McRelationForm from './relation-form/index.vue';
import McRelationFormattr from './relation-formattr/index.vue';
import McRoleSelect from './role-select/index.vue';
import McSlider from './slider/index.vue';
import McSubTable from './sub-table/index.vue';
import McSwitch from './switch/index.vue';
import McTable from './table/index.vue';
import McText from './text/index.vue';
import McTreeSelect from './tree-select/index.vue';
import McUploadFile from './upload-file/index.vue';
import McUploadImg from './upload-img/index.vue';
import McUserSelect from './user-select/index.vue';
import McFormRender from './form-render/index.js';
import McViewRender from './view-render/index.js';


function switchLocale(localeType) {
		switch (localeType) {
			case 'zh-CN':
				locale.use(zhCNLocale);
				break;
			case 'en-US':
				locale.use(enLocale);
				break;
			case 'zh-TW':
				locale.use(zhTWLocale);
				break;
		}
}
export {
	McButton,
	McTimePicker,
	McColorPicker,
	McInput,
	McSelect,
	McDatePicker,
	McInputNumber,
	McAddress,
	McAlert,
	McAutoComplete,
	McBarcode,
	McCalculate,
	McCascader,
	McCheckbox,
	McComSelect,
	McDateRangePicker,
	McDateTimePicker,
	McDepSelect,
	McDivider,
	McEditor,
	McGroupSelect,
	McGroupTitle,
	McLink,
	McNumRange,
	McNumber,
	McOpenData,
	McPopupAttr,
	McPopupSelect,
	McPopupTableSelect,
	McPosSelect,
	McQrcode,
	McRadio,
	McRate,
	McRelationForm,
	McRelationFormattr,
	McRoleSelect,
	McSlider,
	McSubTable,
	McSwitch,
	McTable,
	McText,
	McTreeSelect,
	McUploadFile,
	McUploadImg,
	McUserSelect,
	McFormRender,
	McViewRender,
	switchLocale
}